<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
    tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        skin : "default",
        width : "850",
        height : "210",
       
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,search,replace,|,bullist,numlist,|,undo,redo,|,sub,sup,|,formatselect,fontselect,fontsizeselect,|,code",
        
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : false
    });
</script>

<div class="content">
     <ul class="breadcrumb">
    <li><?php echo CHtml::link('Админка ', array('default/index')); ?> <span class="divider">/</span></li>
    <li class="active"><?php echo CHtml::link(' Категории в блоге ', array('default/blogCat')); ?> <span class="divider">/</span></li>
    <?php if(isset($_GET['id'])) : ?>
      <li class="active">Изменить</li>
    <?php else : ?>
     <li class="active">Добавить</li>
    <?php endif; ?> 
</ul>
<hr/>

<?php echo CHtml::errorSummary($model, 'Пожалуйста исправьте следующие ошибки:'); ?>

<?php echo CHtml::beginForm(); ?> 

    <?php echo CHtml::activeLabel($model, 'name'); ?>
    <?php echo CHtml::activeTextField($model, 'name', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('name'))); ?>

    <?php echo CHtml::activeLabel($model, 'url'); ?>
    <?php echo CHtml::activeTextField($model, 'url', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('url'))); ?> 

    <?php echo CHtml::activeLabel($model, 'title'); ?>
    <?php echo CHtml::activeTextField($model, 'title', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('title'))); ?>

    <?php echo CHtml::activeLabel($model, 'keywords'); ?>
    <?php echo CHtml::activeTextField($model, 'keywords', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('keywords'))); ?>

    <?php echo CHtml::activeLabel($model, 'description'); ?>
    <?php echo CHtml::activeTextField($model, 'description', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('description'))); ?>

    <br/>Дата открытия, формат: день.месяц.гггг(10.11.2012):
    <?php echo CHtml::activeTextField($model, 'date', array('class'=>'activeTextField', 'placeholder'=>$model->getAttributeLabel('description'))); ?>

    <?php echo CHtml::activeLabel($model, 'about'); ?>
    <?php echo CHtml::activeTextArea($model, 'about', array('class'=>'activeTextArea')); ?>

    <br/><?php echo CHtml::submitButton('Подтвердить', array('class'=>'btn btn-large btn-primary')); ?>

<?php echo CHtml::endForm(); ?> 

</div>